package com.zzy.weixin.handler;

import com.zone.weixin4j.annotation.WxMessageHandler;
import com.zone.weixin4j.handler.MessageHandlerAdapter;
import com.zone.weixin4j.mp.event.ScribeEventMessage;
import com.zone.weixin4j.request.WeixinRequest;
import com.zone.weixin4j.response.TextResponse;
import com.zone.weixin4j.response.WeixinResponse;

/**
 * 处理关注消息
 *
 */
@WxMessageHandler
public class SubscribeMessageHandler extends MessageHandlerAdapter<ScribeEventMessage> {

    @Override
    public WeixinResponse doHandle0(WeixinRequest request, ScribeEventMessage message) {
        return new TextResponse("欢迎关注～");
    }
}
